#json数据格式转换
import json
# data=[{"name":"老王","age":31},{"name":"迪亚波罗","age":21}]
# # python转换成json
# data=json.dumps(data,ensure_ascii=False)
# print(data)
# print(type(data))
# # json转换成python
# data=json.loads(data)
# print(data)
# print(type(data))

tuple1=(1,23,41,15.23,35,"说大话")
tuple2=json.dumps(tuple1,ensure_ascii=False)
print(tuple2)
print(type(tuple2))

tuple3=json.loads(tuple2)
print(tuple3)
print(type(tuple3))